<template>
  <div class="offlinemoney">
    <!-- 标题 -->
    <el-row class="header">
      <el-col :span="2" class="headerImg">
        <img src="../assets/left.png" alt />
      </el-col>
      <el-col :span="22" class="headerTitle">{{title}}</el-col>
    </el-row>
    <!-- 课程列表 -->
    <el-row class="kc">
      <el-col :span="12" class="kcList">
        <div class="grid-content bg-purple">
          <div class="kcListwrap">
            <img src="../assets/java@2x.png" alt />
            <p class="jsname">
              讲师：马建军
              <span>8学时</span>
            </p>
          </div>
          <div class="kctitle">java从入门到入土</div>
          <p>￥：180 <span>已报名：51人</span></p>
        </div>
      </el-col>
       <el-col :span="12" class="kcList">
        <div class="grid-content bg-purple">
          <div class="kcListwrap">
            <img src="../assets/kuaiji1.png" alt />
            <p class="jsname">
              讲师：马建军
              <span>8学时</span>
            </p>
          </div>
          <div class="kctitle">java从入门到入土</div>
          <p>￥：180 <span>已报名：51人</span></p>
        </div>
      </el-col>
       <el-col :span="12" class="kcList">
        <div class="grid-content bg-purple">
          <div class="kcListwrap">
            <img src="../assets/java@2x.png" alt />
            <p class="jsname">
              讲师：马建军
              <span>8学时</span>
            </p>
          </div>
          <div class="kctitle">java从入门到入土</div>
          <p>￥：180 <span>已报名：51人</span></p>
        </div>
      </el-col>
    </el-row>
  </div>
</template>
<script>
export default {
  name: "mykc",
  data() {
    return {
      title: "我的课程",
      value: false
    };
  },
  methods: {
    toggle(e) {
      this.value = !this.value;
    }
  }
};
</script>


<style lang="less" scoped>
* {
  font-size: 0.14rem;
}
.offlinemoney {
  width: 100%;
  height: 100%;
  background: #f8f8f8;
}
.header {
  background: #ffffff;
  height: 0.8rem;
  overflow: hidden;
  border-bottom: 1px solid #f8f8f8;
  .headerImg {
    height: 0.8rem;
    img {
      width: 0.3rem;
      height: 0.5rem;
      overflow: hidden;
      margin-top: 0.15rem;
      float: right;
    }
    // background: red;
  }
  .headerTitle {
    font-size: 0.26rem;
    line-height: 0.8rem;
    text-align: center;
    font-weight: 600;
  }
}
// 课程图
.kc {
  height: auto;
  background: #f8f8f8;
  padding: 0.2rem 0;
  //  border: 1px solid red;
  .kcList {
    margin-top: 0.3rem;
    .kcListwrap {
      overflow: hidden;
      position: relative;
      text-align: center;
     
      img {
        height: 2.2rem;
      }
      .jsname {
        width: 90%;
        height: 0.5rem;
        position: absolute;
        bottom: 0;
        background: #000;
        color: #ffffff;
        opacity: 0.8;
        line-height: 0.5rem;
        text-align: left;
        text-indent: 0.2rem;
        span {
          width: 30%;
          line-height: 0.5rem;
          float: right;
          padding-right: 0.2rem;
          color: #ffffff;
        }
      }
    }
    .kctitle{
      width: 90%;
      text-indent: 0.2rem;
      font-size: 0.2rem;
      margin-top: 0.1rem;
      font-weight: 600;
    }
    p{
      width: 90%;
      margin-left: 0.2rem;
      text-align: left;
      color: red;
      line-height: 0.4rem;
      overflow: hidden;
      span{
        width: 70%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        float: right;
        color: #dadada;
        line-height: 0.4rem;
        text-align: right
      }
    }
  }
}
</style>